Skip to content

Claude pretool hooks for dangerous commands and secret files#1317

Merged
labkey-martyp merged 5 commits intodevelopfrom
fb_claude_pretool_hooks
Mar 26, 2026
Merged

Claude pretool hooks for dangerous commands and secret files#1317
labkey-martyp merged 5 commits intodevelopfrom
fb_claude_pretool_hooks

Conversation

@labkey-martyp
Copy link
Copy Markdown
Contributor

Rationale

Add security related Claude pre-tool hooks to prevent dangerous commands and accessing secrets files. Should be compatible and applicable to Mac, Linux and Windows.

Changes

  • Hooks added to settings.json
  • Python scripts for pattern matching dangerous commands and secrets files
  • Test script validating ALLOW/BLOCK

@labkey-martyp labkey-martyp requested review from a team and labkey-jeckels March 24, 2026 06:23
@labkey-martyp labkey-martyp merged commit 43cdb67 into develop Mar 26, 2026
6 of 8 checks passed
@labkey-martyp labkey-martyp deleted the fb_claude_pretool_hooks branch March 26, 2026 05:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants